package com.kuaiditu.assistant.api.assistant_api;


import com.kuaiditu.assistant.api.assistant_api.base.AssistantRequest;
import com.kuaiditu.assistant.api.assistant_api.base.AssistantResponse;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by Eenie on 2017/8/31.
 * Email: eeniework@gmail.com
 * Des:
 */

public interface AssistantService {


    @POST("partTimeCourierApi/kuaiditu/api")
    @FormUrlEncoded
    Observable<AssistantResponse> reqData(@Field("param") AssistantRequest request);


    @POST("partTimeCourierApi/kuaiditu/api")
    @FormUrlEncoded
    Observable<ResponseBody> fetchData(@Field("param") AssistantRequest request);


}
